package garage

import (
	"beesoft.ink/application/garage/app/model"
	"time"
)

type WarehouseEntry struct {
	model.Model

	DriverName  string    `json:"driver_name"`
	DriverPhone string    `json:"driver_phone"`
	EntryType   uint      `json:"entry_type"`
	EntryAt     time.Time `json:"entry_at"`

	Photo     string `json:"photo"`
	Address   string `json:"address"`
	PayLink   string `json:"pay_link"`
	Remark    string `json:"remark"`
	CreatedBy uint   `json:"created_by"` // 创建人

	GarageId  uint `json:"garage_id"`
	VehicleId uint `json:"vehicle_id"`
	TaskId    uint `json:"task_id"`
}

type WarehouseEntryListReq struct {
	model.Pagination
	model.Sorting
}
type WarehouseEntryReq struct {
	WarehouseEntry
	model.Vehicle
}
